	<!-- Form -->
	<div id="form">
		<div class="fheader">Register</div>
		<div class="fbody">
			<form action="{$url}register?app=signup" method="post" name="reg">
				<table cellpadding="5" cellspacing="0">
				<tr>
					<td><b>Username:</b></td>
					<td><input type="text" name="username" class="text" value="{$username}" onchange="authUsername();" /> <span class="error" id="username">{$usrerror}</span></td>
				</tr>
				<tr>
					<td><b>Password:</b></td>
					<td><input type="password" name="password" class="text" onchange="authPassword();" /> <span class="error" id="password">{$passerror}</span></td>
				</tr>
				<tr>
					<td><b>Confirm Password:</b></td>
					<td><input type="password" name="confpass" class="text" onchange="authPassword();" /> <span class="error" id="confpass">{$passerror}</span></td>
				</tr>
				<tr>
					<td><b>Email:</b></td>
					<td><input type="text" name="email" class="text" onchange="authEmail();" /> <span class="error" id="email">{$emerror}</span></td>
				</tr>
				<tr>
					<td><b>Confirm Email:</b></td>
					<td><input type="text" name="confemail" class="text" onchange="authEmail();" /> <span class="error" id="confemail">{$emerror}</span></td>
				</tr>
				<tr>
					<td><b>Privacy Setting:</b></td>
					<td><select name="privacy" class="text">
						<option value="0">Public to all</option>
						<option value="1">Public to members only</option>
						<option value="2">Private to all</option>
					</select></td>
				</tr>
				<tr>
					<td>&nbsp;</td>
					<td><img src="{$url}modules/captcha/captcha.php" alt="CAPTCHA" id="captcha" /><br />
					<a href="javascript:void(0);" onclick="$('captcha').src = '{$url}modules/captcha/captcha.php?r='+(Math.random() * 5);">Generate new validation image</a></td>
				</tr>
				<tr>
					<td><b>Enter as shown above</b></td>
					<td><input type="password" name="captcha" class="text" /> <span class="error" id="captcha">{$codeerror}</span></td>
				</tr>
				<tr>
					<td>&nbsp;</td>
					<td><input type="checkbox" name="terms" value="yes" /> I agree to these <a href="{$url}terms-and-cond" target="_blank">Terms and Conditions</a><span class="error" id="terms">{$termerror}</span></td>
				</tr>
				<tr>
					<td>&nbsp;</td>
					<td><input type="submit" name="register" class="text" value="Sign Up" id="register" /></td>
				<tr>
				</table>
			</form>
		</div>
	</div>
